Only registered user can perform this action
Authentication - string - required
Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"
{
"coupons": [
{
"id": 1,
"name": "dsa2",
"percent_off": 10.0,
"created_at": "2022-08-16T16:00:04.482Z",
"stripe_id": "7Ot6KyLe"
},
...
],
"meta": {
"total_count": 7
}
}
| Param name | Description |
|---|---|
|
sort_to
optional |
Validations:
|
|
sort_by
optional |
Validations:
|
|
page
optional |
Validations:
|
Only registered user can perform this action
Authentication - string - required
Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"
{
"id": 1,
"name": "dsa2",
"percent_off": 10.0,
"created_at": "2022-08-16T16:00:04.482Z",
"stripe_id": "7Ot6KyLe"
}
| Param name | Description |
|---|---|
|
id
required |
Validations:
|
Only registered user can perform this action
Authentication - string - required
Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"
{
"id": 1,
"name": "dsa2",
"percent_off": 10.0,
"created_at": "2022-08-16T16:00:04.482Z",
"stripe_id": "7Ot6KyLe"
}
| Param name | Description |
|---|---|
|
name
required |
Validations:
|
|
stripe_id
required |
Validations:
|
Only registered user can perform this action
Authentication - string - required
Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"
{
"id": 1,
"name": "dsa2",
"percent_off": 10.0,
"created_at": "2022-08-16T16:00:04.482Z",
"stripe_id": "7Ot6KyLe"
}
| Param name | Description |
|---|---|
|
id
required |
Validations:
|
|
coupon
required |
Validations:
|
|
coupon[name]
required |
Validations:
|
|
coupon[stripe_id]
required |
Validations:
|
Only registered user can perform this action
Authentication - string - required
Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"
{
"success": true
}
| Param name | Description |
|---|---|
|
id
required |
Validations:
|